package com.care.dao.mapper;

import com.care.dao.model.Service;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ServiceMapper extends Mapper<Service> {

    Integer selectCommunityServiceCount(@Param("communityId") Integer communityId, @Param("status") Integer status);

    Integer selectCommunityFiniServiceCount(@Param("communityId") Integer communityId);

    List<Service> selectElderMyService(@Param("userId") Integer userId, @Param("status") Integer status, @Param("start") Integer start, @Param("end") Integer end);

    Integer selectElderMyServiceCount(@Param("userId") Integer userId, @Param("status") Integer status);

    List<Service> selectVolunteerMyService(@Param("userId") Integer userId, @Param("start") Integer start, @Param("end") Integer end);

    Integer selectVolunteerMyServiceCount(@Param("userId") Integer userId);
}